import QtQuick
import QtQuick.Controls

Window {
    id: window
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    property int num: 0
    Behavior on num{
        NumberAnimation{
            duration: 500
        }
    }
    Column{
        anchors.centerIn: parent

        Text{
            anchors.horizontalCenter: parent.horizontalCenter
            text: window.num
        }


        Row{
            spacing: 20

            Button{
                text:"-1000"
                onClicked: window.num -= 1000
            }

            Button{
                text:"+1000"
                onClicked: window.num += 1000
            }
        }
    }
}
